<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>抵用券管理</title>
<link rel="stylesheet" type="text/css" href="img/base.css">
<script language="javascript" src="../include/dedeajax2.js"></script>
<script language="javascript" src="js/ieemu.js"></script>
<script language="javascript" src="js/context_menu.js"></script>
<script language="javascript" src="js/main.js"></script>
<script language="javascript" src="js/list.js"></script>
<script language='javascript'> 
function CheckSubmit()
{
	if(document.form5.mb.value=="")
	{
   		document.form5.mb.focus();
   		alert("会员手机不能为空！");
   		return false;
	}
	if(document.form5.ed.value=="")
	{
   		document.form5.ed.focus();
   		alert("派发金额不能为空");
   		return false;
	}
	if(!Number(document.form5.mb.value))
	{
	
   		document.form5.mb.focus();
   		alert("手机号码必须是全数字！");
   		return false;
	}
	if(!Number(document.form5.ed.value) || document.form5.ed.value<='0')
	{
	   document.form5.ed.focus();
   		alert("派发金额必须为大于0的数字");
   		return false;
	}
	return true;
}
</script>

</head>
<body leftmargin="8" topmargin="8" background='img/allbg.gif' onLoad="ContextMenu.intializeContextMenu()">

<!--  快速转换位置按钮  -->
<table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#ccd9b9" align="center">
<tr>
 <td height="26" background="img/newlinebg3.gif">
  <table width="98%" border="0" cellspacing="0" cellpadding="0">
  <tr>
  <td align="center">
  <b>抵用券的有效期，请到 系统--系统基本参数 中设置</b>
 </td>
 </tr>
 
</table>


</td>
</tr>
</table>
<form action="archives_do.php?dopost=pfdyq_" method="post" enctype="multipart/form-data" name="form5" onSubmit="return CheckSubmit();";>

<table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#ccd9b9" align="center" style="margin-top:10px; line-height:26px;">
<tr>
 <td height="26" background="img/newlinebg3.gif">
  <table width="98%" border="0" cellspacing="0" cellpadding="0">
  <tr>
  <td align="center">
  派发抵用券：会员手机：<input type='text' name='mb' id='mb' style='width:80px' />&nbsp;&nbsp;派发金额：<input type='text' name='ed' id='ed' style='width:40px' />&nbsp;&nbsp;派发事由：<input type='text' name='sy' id='sy' style='width:120px' />&nbsp;&nbsp;审核状态：<select name="sh"><option value="1">已审核</option><option value="1">未审核</option></select>
<input name="imageField" type="image" src="img/button_save.gif" width="60" height="22" style="margin-top:3px;"/> </td>
 </tr>
 
</table>


</td>
</tr>
</table>
 </form> 
<!--  内容列表   -->
<form name="form2">
<input type="hidden" name="dopost" value=""/>
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#dbe4cd" align="center" style="margin-top:8px">
<tr bgcolor="#E7E7E7">
	<td height="28" colspan="11" background="img/tbg.gif">
		◆ {dede:global.positionname/}抵用券列表 &nbsp;
	</td>
</tr>
<tr align="center" bgcolor="#FAFAF1" height="22">
	<td width="5%">ID</td>
	<td width="1%">选择</td>
	<td width="20%">获取线路</td>
	<td width="10%">获取时间</td>
	<td width="14%">过期时间</td>
	<td width="14%">使用日期</td>
	<td width="8%">会员姓名</td>
	<td width="10%">会员手机</td>
    <td width="10%">使用状态</td>
	<td width="10%">审核状态</td>
</tr>
{dede:datalist}


<tr align='center' bgcolor="#FFFFFF" 	height="22" onMouseMove="javascript:this.bgColor='#f4fbf4';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
	<td nowrap>
		{dede:field.id/}
	</td>
	<td>
		<input name="fid" type="checkbox" id="arcID" value="{dede:field.id/}" class="np" />
	</td>
	<td align='left'>
		<span id="arc{dede:field.id/}">
		<?php
	
	if($fields[fromid]=='0')
	{
	echo $fields[message];
	}
	else
	{
	$titlea=$dsql->getone("select title from #@__archives where id='$fields[fromid]'");
	
	?>
			<a class='blue2' href='/plus/view.php?aid={dede:field.id/}' target='_blank'>
			
	<?php echo $titlea[title].'</a>';
	}
	?>
		</span>
		
	</td>
	<td>{dede:field.sendtime function='GetDateMk(@me)'/}</td>
	<td><?php  $xtime=$cfg_dyqgq*86400;
	$oktime=$fields[sendtime]+$xtime;
	echo MyDate('Y-m-d h:i',$oktime);
	?></td>
	<td>{dede:field.writetime /}</td>
	<td><?php
	$titlea=$dsql->getone("select name from #@__member where mid='$fields[toid]'");
	 echo $titlea[name];?></td>
	<td><?php
	$titlea=$dsql->getone("select mb from #@__member where mid='$fields[toid]'");
	 echo $titlea[mb];?></td>
    <td><?php 
    if($fields[isadmin]=='0')
    {
    echo '<b>未使用</b>';
    }
    else
    {
      echo '已使用';
    }
    ?></td>
	<td>
	<?php 
    if($fields[hasview]=='0')
    {
    echo '待审核';
    }
    else
    {
      echo '<b>已审核</b>';
    }
    ?>
	</td>
</tr>


{/dede:datalist}
<tr bgcolor="#FAFAF1">
<td height="36" colspan="11">
	&nbsp;
	<a href="javascript:selAll()" class="coolbg">全选</a>
	<a href="javascript:noSelAll()" class="coolbg">取消</a>
	<a href="javascript:checkArc_dyq(0)" class="coolbg">&nbsp;审核&nbsp;</a>
	<a href="javascript:checkArc_nodyq(0)" class="coolbg">&nbsp;取消审核&nbsp;</a>
	<a href="javascript:delArc_dyq(0)" class="coolbg">&nbsp;删除&nbsp;</a>

	
</td>
</tr>
</form>
<tr align="right" bgcolor="#EEF4EA">
	<td height="36" colspan="11" align="center">
		{dede:pagelist listsize=3/}
	</td>
</tr>
</table>

<!--  搜索表单  -->
<form name='form3' action='order_dyq.php' method='get'>
<input type='hidden' name='dopost' value='listArchives' />
<table width='98%'  border='0' cellpadding='1' cellspacing='1' bgcolor='#CBD8AC' align="center" style="margin-top:8px; text-align: right; font-size: 12px;">
  <tr bgcolor='#EEF4EA'>
    <td background='img/wbg.gif' align='center'>
      <table border='0' cellpadding='0' cellspacing='0' height="32">
        <tr>
          <td width='48'>
          
        </td>
        <td width="200" nowrap>
          输入抵用券编号或会员编号：
        </td>
        <td width='173'>
          	<input type='text' name='keyword' style='width:120px' />
        </td>
      
   
       <td width="60">
          <input name="imageField" type="image" src="img/button_search.gif" width="60" height="22" border="0" class="np" />
       </td>
      </tr>
     </table>
   </td>
  </tr>
</table>
</form>

</body>
</html>